import request from '@/utils/request'

export function versionHistory(query) {
  return request({
    url: '/version/history',
    method: 'get',
    params: query
  })
}

export function versionHistoryAdd(data) {
  return request({
    url: '/version/add',
    method: 'post',
    data
  })
}

export function versionHistoryDelete(query) {
  return request({
    url: '/version/delete',
    method: 'get',
    params: query
  })
}
export function downloadFile(query) {
  return request({
    url: '/version/download',
    method: 'get',
    responseType:'blob',//接收的文件流对象，很重要
    params: query
  })
}
